﻿Public Class Search
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub


    Protected Sub btnSearch1_Click(sender As Object, e As EventArgs) Handles btnSearch1.Click

        If txtTagNameQuery.Text = "" Then
            MsgBox("Please enter a valid tag name and click on search")

        Else
            Response.Redirect(ddlSearch1.SelectedValue & txtTagNameQuery.Text)
        End If




    End Sub

    Protected Sub btnSearch2_Click(sender As Object, e As EventArgs) Handles btnSearch2.Click
        Response.Redirect(ddlSearch1.SelectedValue & ddlTags.SelectedValue)



    End Sub

    Protected Sub txtTagNameQuery_TextChanged(sender As Object, e As EventArgs) Handles txtTagNameQuery.TextChanged


    End Sub

    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles btnFindPostcode.Click
        Response.Redirect("http://www.petrolprices.com/search.html?search=" & txtPostCode.Text)



    End Sub
End Class